package com.cctv.product.enums;

import lombok.Getter;

/**
 * 返回结果的状态
 * @Author: cctv
 * @Date: 2019/6/5 16:03
 */
@Getter
public enum ResultEnum {
    PRODUCT_NOT_EXIST(1,"商品不存在"),
    PRODUCT_STOCK_ERROR(2,"库存不足"),

            ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
